<template>
	<view class="content">
		<view class="ticketBox">
			<image src="/static/ticket.png" mode=""></image>
		</view>
		<!-- 店家信息 -->
		<view class="shopInfo ffffff mainpadding">
			<view class="text_weight color_ling">深呼吸健身</view>
			<view class="margin_top text_b color_san padding_bottom line_bottom">
				銀基动物王國是由梦幻动物园、奇幻世界、翡翠海、生命岛、巨龙山谷區域及佳宝小镇六大主題區域组成动物主題綜合性游乐园。不只有动物，更是游乐园。
			</view>
			<view class="flexbetween margin_top">
				<view class="">
					<view class="flexleft">
						<image class="addressImg margin_right1" src="/static/images/index/address.png" mode=""></image>
						<view class="text_b color_san">距您5.3km</view>
					</view>
					<view class="flexleft margin_top1">
						<image class="shopInfoImg" src="/static/images/index/home.png" mode=""></image>
						<view class="text_b color_san margin_left1">中原區高新技术開發區莲花街316316號中原區高新技术開發區莲花街316316號</view>
					</view>
				</view>
				<view class="flexleft margin_left2">
					<view class="margin_right4">
						<image class="imgBox" src="/static/images/index/navigation.png" mode=""></image>
						<view class="text_pee color_san">導航</view>
					</view>
					<view>
						<image class="imgBox" src="/static/images/index/phoneShop.png" mode=""></image>
						<view class="text_pee color_san">電話</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 券 -->
		<view class="mainpadding ffffff flexleft margin_bottom3" v-for="item in 2">
			<image class="cardImg margin_right3" src="/static/goods.png" mode=""></image>
			<view class="flex1">
				<view class="text_x color_san">【新客专享】健身次卡</view>
				<view class="flexbetween margin_top">
					<view>
						<view class="text_w color_orange">$99.00</view>
						<view class="flexleft margin_top2">
							<view class="text_pee color_jiu margin_right1">预定须知</view>
							<u-icon name="arrow-right" color="#999" size="16"></u-icon>
						</view>
					</view>
					<image class="bookImg" src="/static/images/index/book.png" mode="" @click="show=true"></image>
				</view>
			</view>
		</view>
		<u-popup :show="show" :round="20" mode="bottom" @close="show=false">
			<view class="popupBox">
				<view class="title flexbetween line_bottom">
					<view class="text_j color_san">
						銀基冰雪成人门票
					</view>
					<view @click="show=false">
						<u-icon name="close-circle" color="#9A9A9A" size="28"></u-icon>
					</view>
				</view>
				<view style="margin-top: 140rpx;padding-bottom: 120rpx;">
					<view class="text_x color_ling">预定说明</view>
					<view class="flex margin_top">
						<view class="text_b color_jiu margin_right3">预订時間</view>
						<view class="text_b color_ling">不可超過晚需在【使用当天14:00】前購買</view>
					</view>
					<view class="flex margin_top">
						<view class="text_b color_jiu margin_right5">有效期</view>
						<view class="text_b color_ling">選擇的使用日期当天有效</view>
					</view>
					<view class="flex margin_top">
						<view class="text_b color_jiu margin_right3 white_nowrap">适用条件</view>
						<view class="text_b color_ling">19周岁 (含) ~59周岁 (含)(按生日計算年龄以出行日期爲准)
							持有浙江台州、浙江嘉兴、浙江杭州、浙江温州、浙江湖州、浙江绍兴、浙江金华身份證的游客不可预订</view>
					</view>
					<view class="flex margin_top">
						<view class="text_b color_jiu margin_right3 white_nowrap">限購政策</view>
						<view class="text_b color_ling">同一有效證件同一使用日期限購1份景區在所有平台統一限購，請勿使用同一身份信息多次購買，以免訂單提交失敗</view>
					</view>
					<view class="text_x color_ling margin_top">費用说明</view>
					<view class="flex margin_top">
						<view class="text_b color_jiu margin_right3 white_nowrap">費用包含</view>
						<view class="text_b color_ling">
							九寨沟风景區门票+观光車票成人票X1景點:長海，五彩池，原始森林，箭竹海，熊猫海，五花海，珍珠滩，珍珠滩瀑布，诺日郎瀑布，犀牛海，树正群海，火花海、、</view>
					</view>
					<view class="text_x color_ling margin_top">使用说明</view>
					<view class="flex margin_top">
						<view class="text_b color_jiu margin_right3 white_nowrap">使用方法</view>
						<view class="text_b color_ling">商家掃碼核銷</view>
					</view>
				</view>
				<!-- 底部 -->
				<view class="footerBox">
					<view class="footerPirce flexbetween">
						<view class="flexleft paddingtb padding_left3">
							<view>
								<text class="color_ling text_d">合計：</text>
								<text class="totalPrice">$</text>
								<text class="totalPrice" style="font-size: 36rpx;">296</text>
							</view>
						</view>
						<view class="settlement" @click="goSlate">
							購買
						</view>
					</view>
				</view>
			</view>
		</u-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				show: false
			}
		},
		methods: {
			goSlate(){
				uni.navigateTo({
					url:"./slateTicket"
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding-bottom: 30rpx;
	}

	.ticketBox {
		width: 100%;
		height: 569rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	// 店家信息
	.shopInfo {
		width: 100%;
		// height: 377rpx;
		box-sizing: border-box;
		background: #FFFFFF;
		border-radius: 39rpx 39rpx 0rpx 0rpx;
		position: relative;
		top: -30rpx;
		left: 0;
	}

	.addressImg {
		width: 22rpx;
		min-width: 22rpx;
		height: 25.99rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.shopInfoImg {
		width: 21rpx;
		height: 20rpx;
		min-width: 21rpx;

		image {
			width: 100%;
			height: 100%;
		}
	}

	.imgBox {
		width: 52rpx;
		height: 52rpx;
	}

	.cardImg {
		width: 118rpx;
		height: 152rpx;
	}

	.bookImg {
		width: 65rpx;
		height: 64.25rpx;
	}

	//修改背景颜色
	::v-deep.u-popup__content {
		background-color: #fafafa !important;
	}

	.popupBox {
		height: 700rpx;
		padding: 0 30rpx 50rpx;
		border-top-left-radius: 50rpx;
		border-top-right-radius: 50rpx;
		box-sizing: border-box;
		overflow-y: auto;

		.title {
			width: 100%;
			padding: 50rpx 30rpx 30rpx;
			box-sizing: border-box;
			border-top-left-radius: 50rpx;
			border-top-right-radius: 50rpx;
			position: fixed;
			left: 50%;
			transform: translateX(-50%);
			bottom: 605rpx;
			background-color: #fafafa;
		}
	}

	// 底部
	.footerBox {
		width: 100%;
		padding: 0 30rpx;
		box-sizing: border-box;
		position: fixed;
		left: 0;
		bottom: 40rpx;

		.footerPirce {
			width: 708rpx;
			height: 101rpx;
			background: #FFFFFF;
			box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(0, 0, 0, 0.05);
			border-radius: 53rpx 53rpx 53rpx 53rpx;
		}

		.totalPrice {
			font-size: 26rpx;
			font-family: DIN Next LT Pro-Medium;
			font-weight: 500;
			color: rgba(253, 70, 62, 1);
		}

		.settlement {
			width: 178rpx;
			height: 101rpx;
			line-height: 101rpx;
			text-align: center;
			background: #FFB800;
			border-radius: 0rpx 53rpx 53rpx 0rpx;
			font-size: 32rpx;
			font-family: PingFang SC-Medium, PingFang SC;
			font-weight: 500;
			color: #000000;
		}
	}
</style>